<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>表单上传文件</title>
</head>
<body>
  <h3>表单上传文件</h3>
  <form action="." method="post" enctype="multipart/form-data">
    {% csrf_token %}
    {{ form.as_p }}
    <input type="submit" value="提交表单">
  </form>
</body>
</html>